package com.shanzmoo.db.store.service.impl;

import com.shanzmoo.db.store.entity.StoreReceiveBillEntity;
import com.shanzmoo.db.store.entity.vo.StoreReceiveBillVO;
import com.shanzmoo.db.store.entity.query.StoreReceiveBillQuery;
import com.shanzmoo.db.store.mapper.StoreReceiveBillMapper;
import com.shanzmoo.db.store.service.IStoreReceiveBillService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓库收货单 服务实现类
 *
 * @author Gzhao 2021-03-11
 */
@Service
public class StoreReceiveBillServiceImpl extends ServiceImpl<StoreReceiveBillMapper, StoreReceiveBillEntity>
        implements IStoreReceiveBillService {

    @Override
    public List<StoreReceiveBillVO> queryPageList(StoreReceiveBillQuery query) {
        return baseMapper.queryPageList(query);
    }

    @Override
    public StoreReceiveBillVO getInfoById(Integer id) {
        StoreReceiveBillEntity entity = baseMapper.selectById(id);
        return entity.toBillVO();
    }
}
